<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE>
<html>
   <head>
   	   <meta charset="utf8">
   	   <meta name="viewport" content="width=device-width, initial-scale=1">
       <link rel="stylesheet" type="text/css" href="/aquaticproduct/Public/css/bootstrap.min.css">
       <link rel="stylesheet" type="text/css" href="/aquaticproduct/Public/css/sticky-footer-navbar.css">

       <script type="application/javascript" src="/aquaticproduct/Public/js/jquery-1.11.1.min.js"></script>
       <script type="application/javascript" src="/aquaticproduct/Public/js/bootstrap.min.js"></script>
   	   
   	   <title>水产品质量溯源系统</title>

   </head>
<body>
    <!-- Fixed navbar -->
    <nav class="navbar navbar-default navbar-fixed-top">
      <div class="container">
	        <div class="navbar-header">
	          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
	            <span class="sr-only">Toggle navigation</span>
	            <span class="icon-bar"></span>
	            <span class="icon-bar"></span>
	            <span class="icon-bar"></span>
	          </button>
	          <a class="navbar-brand" href="#">水产品质量溯源系统</a>
	        </div>
	        <div id="navbar" class="collapse navbar-collapse">
	          <ul class="nav navbar-nav">
	            <li class="dropdown">
	            	<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">个人中心<span class="caret"></span></a>
	            	   <ul class="dropdown-menu">
		                <li><a href="<?php echo U('Home/User/showMe',array('role'=> '1'));?>">个人信息</a></li>
		                <li><a style="color:red" href="<?php echo U('Home/Index/logout');?>">退出</a></li>	                
		              </ul>
	            </li> 
	            <li class="dropdown">
	              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">用户中心 <span class="caret"></span></a>
	              <ul class="dropdown-menu">
	                <li><a href="<?php echo U('Superadmin/User/index');?>">注册用户</a></li>

	                <li><a href="<?php echo U('Superadmin/User/manage');?>">用户管理</a></li>
	              </ul>
	            </li>
	            <li class="dropdown">
	              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">功能列表 <span class="caret"></span></a>
	              <ul class="dropdown-menu">
	                <li><a href="<?php echo U('Superadmin/Safe/index');?>">基地基本信息</a></li>

	                <li><a href="#"></a></li>
	              </ul>
	            </li>
	          </ul>
	          <a class="navbar-brand " href="#">|&nbsp&nbsp&nbsp&nbsp系统管理员</a>
	        </div><!--/.nav-collapse -->
      </div>
    </nav>
    

   
 <div class="container">
 	<div class="row">
 		<div class="col-sm-6">
 <form  name="shenbao_form"  class="form-horizontal" role="form" method="post" onsubmit="return checkSubmitShenBao()" action="<?php echo U('Superadmin/User/adminRegister');?>">
    <fieldset>
      <div id="legend" class="">
        <legend class="">基础管理员注册</legend>
      </div>
         <div class="form-group">
            <label for="firstname" class="col-sm-2 control-label">账号</label>
            <div class="col-sm-7">
               <input type="text" class="form-control" id="firstname"  name="member_username" 
                  >
            </div>
         </div>
         <div class="form-group">
            <label for="firstname" class="col-sm-2 control-label">密码</label>
            <div class="col-sm-7">
               <input type="password" class="form-control" id="firstname" name="member_password"  
                  >
            </div>
         </div>
         <div class="form-group">
            <label for="firstname" class="col-sm-2 control-label">确认密码</label>
            <div class="col-sm-7">
               <input type="password" class="form-control" id="firstname" name="member_apassword"  
                  >
            </div>
         </div>

        <div class="form-group">
          <label for="name" class="col-sm-2 control-label">所属基地</label>
            <div class="col-sm-7">
              <select  id="member_base_id" name="member_base_id" class="form-control" >
                <option value="0" selected="selected">请选择基地</option>
                <?php if(is_array($base_data)): $i = 0; $__LIST__ = $base_data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value= "<?php echo ($vo["base_id"]); ?>"><?php echo ($vo["base_name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
              </select>
            </div>
        </div>
         <div class="form-group"> 
          <label for="name" class="col-sm-2 control-label">权限选择</label>
            <div class="col-sm-7">
              <select  id="quanxian" name="quanxian" tip="区域类型" class="form-control" >
                <option value="0" selected="selected">请选择权限</option>
                <?php if(is_array($base_data)): $i = 0; $__LIST__ = $base_data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value= "<?php echo ($vo["base_id"]); ?>"><?php echo ($vo["base_name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>

              </select>
            </div>
        </div>
        

         <div class="form-group">
         </div>

    <div class="control-group">

          <!-- Button -->
          <div class="controls col-sm-12 text-right" style="padding:0px;margin:0px">
            <!-- <button class="btn btn-success">提交</button> -->
            <input type="submit" id="submit" class="btn btn-success" value="提交"/>
          </div>
    </div>

          
  	  </fieldset>
	  </form>
   	 </div> <!-- col-sm-6 -->
   	 <!-- 用户注册 -->
   	
	</div><!-- row -->

</div><!-- /container -->
    <footer class="footer">
      <div class="container">
        <p class="text-muted"><center>Copyright by 华南农业大学</center></p>
      </div>
    </footer>
  </body>
</html>
<script>
	function checkSubmitShenBao() {
		return 1;
	}
</script>